<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>申领运单号</title>
<script type="text/javascript">
 function local(item){
		   window.location.href="${ctx}/v2/customers/getExpress/"+item.value;
		}

</script>
	</head>

	<body>
	<section class="content">
<div class="row">
		<div class="col-md-12">

			<!-- Primary box -->
			<div class="box box-solid box-primary">
				<div class="box-header">
					<i class="fa fa-list"></i>
					<h3 class="box-title">运单号申领</h3>
					<div class="box-tools pull-right">
						<button class="btn btn-primary btn-sm" data-widget="collapse">
							<i class="fa fa-minus"></i>
						</button>
					</div>
				</div>
				<div class="box-body">
	      <div class="span12">
		     	<b>客户名称:</b>
				
				<select class="input-medium" id="customers" onchange="local(this);">
					<c:forEach items="${customers }" var="o">
						<option value="${o.customerCode}" <c:if test="${customerCode eq  o.customerCode}">selected</c:if>> ${o.customerName } </option>
					</c:forEach>
				</select>
		 </div>
		<c:if test="${status eq 0 }">
		<script type="text/javascript">
		
		  window.location.href="${ctx}/v2/customers/getExpress/"+$("#customers").val();
		</script>
		</c:if>
        <div class="span12" style="margin: 100px;">
			<font size="5">客户名称:${name }<br> 申领的起始运单号为:</font><font size="13">${waybillNo
				}</font>
		</div>
    </div>
    </div>
    </div>
    </div>
    </section>
	</body>
</html>
